package com.bright.hxj.qchz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.bright.ghj.common", "com.bright.hxj.qchz"})
//@EnableCaching
@EnableScheduling
//@EnableTransactionManagement // 这个注解在MyBatisPlusConfig有了
//@MapperScan(basePackages = {"com.bright.hxj.qchz.mapper"})
public class QchzReceiveApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(QchzReceiveApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(QchzReceiveApplication.class);
    }

}